package com.dong.homework;

public class Score {
    private int math;
    private int chinese;
    private int enlish;

    public Score() {
        math=(int)(Math.random()*100)+1;
        chinese=(int)(Math.random()*100)+1;
        enlish=(int)(Math.random()*100)+1;
    }

    public Score(int math, int chinese, int enlish) {
        this.math = math;
        this.chinese = chinese;
        this.enlish = enlish;
    }

    public int getMath() {
        return math;
    }

    public void setMath(int math) {
        this.math = math;
    }

    public int getChinese() {
        return chinese;
    }

    public void setChinese(int chinese) {
        this.chinese = chinese;
    }

    public int getEnlish() {
        return enlish;
    }

    public void setEnlish(int enlish) {
        this.enlish = enlish;
    }

    @Override
    public String toString() {
        return "Score{" +
                "math=" + math +
                ", chinese=" + chinese +
                ", enlish=" + enlish +
                '}';
    }
}